0
Welcome Guest! Login
0 items Join Now

PHP 7.2 fix for RokCommon

    • Steve_bcs's Avatar
    • Steve_bcs
    • Jr. Rocketeer
    • Posts: 20
    • Thanks: 0

    Re: PHP 7.2 fix for RokCommon

    Posted 5 years 9 months ago
    • Hello,
      I've tried to modify the lines as indicated but now get this error:

      Error: [] operator not supported for strings: [] operator not supported for strings
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: PHP 7.2 fix for RokCommon

    Posted 5 years 9 months ago
  • Re: PHP 7.2 fix for RokCommon

    Posted 5 years 8 months ago
    • Hello, I changed thos lines of code and nothing happens. I still get a blank page with an error single word on it. on the error log I sill get: Deprecated: Function create_function() is deprecated in /home/xxx/public_html/web/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 460

      today all my sites running on joomla with rockettheme RokCommon / roksprocket are giving me errors due to the php upgrade that my hosting provider did yesterday. Any advice on what to do please?
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: PHP 7.2 fix for RokCommon

    Posted 5 years 8 months ago
    • Doriandr wrote:
      Hello, I changed thos lines of code and nothing happens. I still get a blank page with an error single word on it. on the error log I sill get: Deprecated: Function create_function() is deprecated in /home/xxx/public_html/web/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 460

      today all my sites running on joomla with rockettheme RokCommon / roksprocket are giving me errors due to the php upgrade that my hosting provider did yesterday. Any advice on what to do please?

      Please post your URL, Username and Password in Secure Tab and i will take a look and maybe figure out what the problem is.

      FTP info with Username and password is also necessary ...

      For posting sensitive information you hit the Blue Reply Button and then you will see Secure Tab. Post all info that is sensitive in there, only Fellow Mods, Staff and I can see that!
    • Available for CUSTOM WORK with Joomla, WordPress and Grav Templates and Gantry Framework!
    • marqus79's Avatar
    • marqus79
    • Sr. Rocketeer
    • Posts: 150
    • Thanks: 0

    Re: PHP 7.2 fix for RokCommon

    Posted 5 years 8 months ago
    • I am seeing the same error after this fix --- did you figure this out? @Steve_bcs
    • Last Edit: 5 years 8 months ago by marqus79.
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: PHP 7.2 fix for RokCommon

    Posted 5 years 8 months ago
    • marqus79's Avatar
    • marqus79
    • Sr. Rocketeer
    • Posts: 150
    • Thanks: 0

    Re: SOLVED PHP 7.2 fix for RokCommon

    Posted 5 years 8 months ago
    • @DAMIR and all who performed the following updates and then received an "Error: [] operator not supported for strings: [] operator not supported for strings" as noted by previous posts. The following RT post really helped!::

      rockettheme.com/forum/gantry-for-joomla/...-t-work-with-php-7-1

      It turns out that the LAYOUT.PHP fix helped fix the ERROR, as well as helping find other extentions that were deprecated / outdated and did not show up in ERROR REPORTING.

      I hope this fix, helps others get on the right track!
    • Last Edit: 5 years 8 months ago by marqus79.
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: SOLVED PHP 7.2 fix for RokCommon

    Posted 5 years 8 months ago
    • assur3's Avatar
    • assur3
    • Elite Rocketeer
    • Posts: 559
    • Thanks: 0

    Re: PHP 7.2 fix for RokCommon

    Posted 5 years 2 weeks ago
    • Hi Everyone,

      I found this thread hoping to find the answer to my issue. i upgraded my PHP to the latest 7.2. ended up coming with error messege on ROKCommon. i grabed the latest on ROKCommon and installed it. However this did fix the issue where ROKCommon is deprecated.

      Noted the lines that were said to be an issue in the thread but, they are diffrent from what I have.


      Warning: Attempt to modify property of non-object in /home4/assur3/public_html/libraries/rokcommon/RokCommon/Registry.php on line 369
      Warning: Attempt to modify property of non-object in /home4/assur3/public_html/libraries/rokcommon/RokCommon/Registry.php on line 363

      Anyway to fix this? my site is down untill then..

      Thanks!
  • Re: PHP 7.2 fix for RokCommon

    Posted 5 years 2 weeks ago
    • These are warnings, so you can simply turn off Error Reporting in your Joomla admin -> Global configuration for now. These are not fatal errors so everything should be working fine.
    • Kind regards,
      Reggie

      Learn to code for free.
      www.freecodecamp.org

Time to create page: 0.071 seconds